const ConsulConfig = require('./server');
const consul = new ConsulConfig();

consul.registerServer({
    name: 'dream',
    address: '127.0.0.1',
    port: 4000,
    check: {http: 'http://127.0.0.1:4000/health', interval: '10s', timeout: '5s'}
}, (err, res) => {
    if (err) {
        console.log(err)
    } else {
        console.log(res)
    }
})
